package com.wx.finance.admin.api.config;

import com.wx.common.netty.NettyServerHelper;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.remoting.netty.NettyClientConfig;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
@RequiredArgsConstructor
@Slf4j
public class WebServerInitConfig implements CommandLineRunner {
    final NettyServerHelper nettyServerHelper;

    @Override
    public void run(String... args) {
        nettyServerHelper.run();
    }
}